package com.school.dao;

import com.school.pojo.Page;
import com.school.pojo.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface studentMapper {
    //增加一个
    public int insertStudent(Map map);
    //删除一个
    public int delStudent(@Param("id") int id);
    //修改
    public int updateStudent(Map map);
    //按需求查看
    public List<Student> queryStudent(Map map);
    //查看全部
    public List<Student> queryAll();
    //查询所有数量
    public int queryNumber();
    //按页面查询
    public List<Student> queryStuByPage(Page page);
    //按需求页面查询数量
    public int queryStuByPageNum(Map map);
}
